<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('purchaser_rights', function (Blueprint $table) {
            $table->id();
            $table->unsignedTinyInteger('level')->comment('权益等级');
            $table->string('name')->comment('权益名称');
            $table->string('code', 10)->comment('权益代码');
            $table->string('权益描述');
            $table->unsignedTinyInteger('status')->default(1)->comment('禁用状态 0 禁用 1 正常');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('purchaser_rights');
    }
};
